<?php
/**
 * Dwz 工具条数据插件
 *
 * @author maomao.thx@gmail.com
 * @copyright Copyright (c) 2009 Green Shore (http://www.iwgame.com)
 * @version $Id: DwzPanelBar.php 1059 2011-11-18 09:26:15Z mmxie $
 */
class IG_Data_Plugin_DwzPanelBar extends IG_Data_Plugin
{
    protected $_buttons;

    public function setButtons($buttons)
    {
        $this->_buttons = $buttons;
        return $this;
    }

    public function before()
    {
        echo $this->getView()->dwzPanelBar($this->_buttons);
    }
}